package com.gwl.pattern.bridge;

import com.gwl.pattern.bridge.abstraction.HouseCorp;
import com.gwl.pattern.bridge.abstraction.ShanZaiCrop;
import com.gwl.pattern.bridge.implementor.Clothes;
import com.gwl.pattern.bridge.implementor.House;
import com.gwl.pattern.bridge.implementor.IPod;

public class ClientController {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		House house = new House(); 
		IPod ipod = new IPod(); 
		Clothes clothes = new Clothes(); 
		
		HouseCorp hc = new HouseCorp(house); 
		ShanZaiCrop sz = new ShanZaiCrop(ipod); 
		ShanZaiCrop sz2 = new ShanZaiCrop(clothes); 
		ShanZaiCrop sz3 = new ShanZaiCrop(house); 
		
		hc.makeMoney(); 
		sz.makeMoney(); 
		sz2.makeMoney(); 
		sz3.makeMoney(); 
		
	}

}
